package dao;

import java.util.List;
import java.util.Set;

import entity.User;


public interface UserDao {
	//通过Name来得到用户信�?
	public User getByUserName(String userName);
	
	//通过Name来得到Role
	public Set<String> getRoles(String userName);
	
	//通过名字得到Permissions
	public Set<String> getPermissions(String userName);
	//
	 public int insert(User user);
	    
	    public int update(User user);
	    
	    public int delete(String userName);
	    
	    public List<User> selectAll();
	    
	    public int countAll();
	    
	    public User findByUserName(String userName);

		public User getUserById(int userId);

		public User getUserByIdNoPwd(int userId);
	
}
